﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="JointingCheckAdd.aspx.cs" Inherits="JointingCheck_JointingCheckAdd"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<script type="text/javascript" src="../../../js/JudgeInput.js"></script>--%>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="text-align: center;">
                <br />
                <br />
                <br />
                <br />
                <br />
                <div style="text-align: center;">
                    <table style="width: 80%; border: solid 1px black; margin: 0 auto;">
                        <tr>
                            <td>
                                操作员工号：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" OnTextChanged="TextBox3_TextChanged" TabIndex="1"
                                    ValidationGroup="VGroup1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox3"
                                    Display="Dynamic" ErrorMessage="不能为空" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox3"
                                    Display="Dynamic" ErrorMessage="请输六位工号" ValidationExpression="[0-9XxJj]{1}[0-9]{5}"
                                    ValidationGroup="VGroup1"></asp:RegularExpressionValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                产品类型S代码：</td>
                            <td>
                                <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                    ControlToValidate="TextBox10" Display="Dynamic" ErrorMessage="不能为空" 
                                    ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                请选择检验的结果：
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                </asp:DropDownList>
                                +<asp:TextBox ID="TextBox9" runat="server" Width="64px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="添　加" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                请扫描腔体序列号：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox1" runat="server" TabIndex="1" AutoPostBack="True" 
                                    ontextchanged="TextBox1_TextChanged"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                    Display="Dynamic" EnableClientScript="False" ErrorMessage="不能为空" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提  交" ValidationGroup="VGroup1" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <br />
                <div style="text-align: center; clear: both; height: 285px; width: 80%; margin: 0 auto;
                    border: 1px solid black">
                    <div style="text-align: center; float: left; height: 285px; width: 49%; margin: 0 auto;
                        border: 1px solid black">
                        <br />
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                    隔离器序列号
                                </td>
                                <td>
                                    隔离器物料类型
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="TextBox4" runat="server" TabIndex="21" Width="128px" AutoPostBack="True"
                                        OnTextChanged="TextBox4_TextChanged"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox4"
                                        ErrorMessage="不能为空" ValidationGroup="VGroup3" Display="Dynamic" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox5" runat="server" AutoPostBack="True" OnTextChanged="TextBox5_TextChanged"
                                        ValidationGroup="VGroup3"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5"
                                        ErrorMessage="不能为空" ValidationGroup="VGroup3" Display="Dynamic" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <div>
                        </div>
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="100%"
                            BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                            CellSpacing="1" GridLines="None" OnRowDataBound="GridView2_RowDataBound" OnRowDeleting="GridView2_RowDeleting">
                            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                            <Columns>
                                <asp:BoundField DataField="BatchID" HeaderText="批次序列号" />
                                <asp:BoundField DataField="StuffTypeID" HeaderText="物料类型" />
                                <asp:BoundField DataField="Remark" HeaderText="备注" />
                                <asp:CommandField HeaderText="选择" ShowDeleteButton="True" />
                            </Columns>
                            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        </asp:GridView>
                        <br />
                        <br />
                    </div>
                    <div style="text-align: center; float: right; height: 285px; width: 49%; margin: 0 auto;
                        border: 1px solid black">
                        <br />
                        <table style="width: 100%;">
                            <tr>
                                <td>
                                    耦合板序列号
                                </td>
                                <td>
                                    耦合板物料类型
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="TextBox7" runat="server" TabIndex="31" Width="128px" AutoPostBack="True"
                                        OnTextChanged="TextBox7_TextChanged"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox7"
                                        ErrorMessage="不能为空" ValidationGroup="VGroup4" Display="Dynamic" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox8" runat="server" AutoPostBack="True" OnTextChanged="TextBox8_TextChanged"
                                        ValidationGroup="VGroup4"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox8"
                                        ErrorMessage="不能为空" ValidationGroup="VGroup4"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <div>
                        </div>
                        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" Width="100%"
                            BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                            CellSpacing="1" GridLines="None" OnRowDataBound="GridView3_RowDataBound" OnRowDeleting="GridView3_RowDeleting">
                            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                            <Columns>
                                <asp:BoundField DataField="BatchID" HeaderText="批次序列号" />
                                <asp:BoundField DataField="StuffTypeID" HeaderText="物料类型" />
                                <asp:BoundField DataField="Remark" HeaderText="备注" />
                                <asp:CommandField HeaderText="选择" ShowDeleteButton="True" />
                            </Columns>
                            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        </asp:GridView>
                        <br />
                        <br />
                    </div>
                </div>
                <br />
                <br />
                <div style="text-align: center;">
                    <br />
                    <table style="width: 80%; border: solid 1px black; margin: 0 auto;">
                        <tr>
                            <td>
                                查询腔体序列号是否已经做焊点检验记录：
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox2"
                                    ErrorMessage="*" ValidationGroup="VGroup2"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:Button ID="Button2" runat="server" Text="查 询" ValidationGroup="VGroup2" OnClick="Button2_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:GridView ID="GridView1" runat="server" BackColor="White" Width="100%" BorderColor="White"
                                    BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"
                                    AutoGenerateColumns="False">
                                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                    <Columns>
                                        <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                                        <asp:BoundField DataField="RecordTime" HeaderText="记录时间" />
                                        <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                        <asp:BoundField DataField="UserID" HeaderText="操作员" />
                                        <asp:BoundField DataField="FailureName" HeaderText="检验结果" />
                                        <asp:BoundField DataField="ResponseUser" HeaderText="不良责任人" />
                                    </Columns>
                                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                                </asp:GridView>
                                <br />
                                <br />
                            </td>
                        </tr>
                    </table>
                    <br />
                    <br />
                    <br />
                    注1：扫描产品序列号会自动提交数据，请保证扫描产品序列号前录入全部的数据；<br />
                    注2：依次扫描操作员工号，选择检验结果，扫描腔体序列号，即可提交相应记录；<br />
                    如果有相应的隔离器或耦合板，请保证先添加隔离器或耦合板<br />
                    注3：依次扫描隔离器或耦合板序列号，扫描物料类型，即可添加到相应隔离器或耦合板列表<br />
                    <br />
                    <br />
                    <br />
                </div>
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
